package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.EmailNotifications;
import com.example.mall.dto.EmailNotificationsDto;
import com.example.mall.query.EmailNotificationsQuery;
import com.example.mall.query.PageDTO;

import java.util.List;


/**
 * <p>
 * 邮件通知表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
public interface IEmailNotificationsService extends IService<EmailNotifications> {

    //分页查询
    PageDTO<EmailNotificationsDto> queryPage(EmailNotificationsQuery emailNotificationsQuery);

    //根据id查询
    EmailNotifications queryEmailNotificationsById(Long emailId);

    //查询所有
    List<EmailNotifications> queryEmailNotificationsList();

    //新增
    void insert(EmailNotificationsDto emailNotificationsDto);

    //修改
    void update(EmailNotificationsDto emailNotificationsDto);

    //删除
    void delete(Long emailId);

    //批量删除
    void deleteBatch(List<Long> emailIds);
}
